3 Replies - 9094 Views - Last Post: 31 December 2010 - 07:48 AM Rate Topic: -----

#1 Guest_sld*


Reputation:

Sint16

Posted 31 December 2010 - 07:24 AM

i don't understand what the data type Sint16 mean ?
Is This A Good Question/Topic? 0

Replies To: Sint16

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6107
  • View blog
  • Posts: 23,661
  • Joined: 23-August 08

Re: Sint16

Posted 31 December 2010 - 07:29 AM

Neither do we without context. It's not a standard datatype. Is it part of SDL? If so, Googling sdl sint16 brought up this PDF which states:

Quote

Note that the functions take Sint16's for coordinates. These are just short's, which are 16 bit signed (can be negative and positive) integers.


Which is about what I inferred from the datatype. S for short, int for integer, 16 for 16 bits.
Was This Post Helpful? 0
  • +
  • -

#3 Guest_sld*


Reputation:

Re: Sint16

Posted 31 December 2010 - 07:36 AM

wow thanks #2 JackOfAllTrades
Was This Post Helpful? 0

#4 horace  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 291
  • View blog
  • Posts: 1,900
  • Joined: 25-October 06

Re: Sint16

Posted 31 December 2010 - 07:48 AM

View Postsld, on 31 December 2010 - 01:24 PM, said:

i don't understand what the data type Sint16 mean ?

when doing low level microcontroller programming it is often necessary to indicate the number of bits used for operands and if signed or unsigned. e.g. UINT16 and UNIT32 for unsigned 16 and 32 bit operands and SINT16 or SINT32 (or the default INT16 or INT32) for signed operands.
for an example see
http://www.microchip...settheme=Mobile

This post has been edited by horace: 31 December 2010 - 07:49 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1