Results 1 to 2 of 2

Thread: Math routines for J2ME

  1. #1

    Lightbulb

    Since J2ME has removed all floating point support is there anything special you use for SQRT functionality etc? some Integer Math Classes?

    Also, when you are creating your classes for the small devices, do you limit your creativity and create fewer classes to save memory, or just pretty much do business as usual?

    Brent

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Post

    J2ME I have not worked with. Maybe you meant BREW?

    I have not attemped to do any complex math yet on a BREW phone.  

    There is some info here though:  (this link is a great forum for BREW info btw&#33

    http://brewforums.qualcomm.com/showthr....math%2A

    I pretty much code the same.  I do use #defines more and keep my classes a bit simpler though.  (I stay away from complex class hierarchies in BREW, I don't think I've ever even subclassed anything yet)

    There is no reason not to use the C++ features, the CPU's aren't bad, it's the screen updates that will kill you!  (just adding a clear screen before a blit can drop FPS by 10%.. &#33
    Seth A. Robinson
    Robinson Technologies

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •