Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5290

Re: Shortint calculations

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Shortint calculations
Date 2013-05-28 08:02 +0200
Message-ID <b0ivk9Fn4c6U1@mid.individual.net> (permalink)
References <aa22a440-8e92-444c-9538-3488ccce999d@googlegroups.com> <ca879809-f20c-4d98-a225-44d4e73ae01e@googlegroups.com> <fc9ab794-eb2e-462d-a633-8df7bfa03f26@googlegroups.com>

Show all headers | View raw


Hi Kay-Viktor,

> shortints are signed and should have no problems with negative values
> in this range. I've had enough headaches with word/dword values
> within calculations therefore I preferred shortints, but now this ...

on a 32 bit system it is better to user int and dword because they are
32 bit values. Shortint and word are 16 bit values and have a
performance penalty because they need to be aligned to 32 bit.

Wolfgang

P.S. I think that VO behaves erratically in your sample

-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Shortint calculations kvstegemann@web.de - 2013-05-27 08:53 -0700
  Re: Shortint calculations Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-05-27 18:09 +0200
  Re: Shortint calculations dlzc <dlzc1@cox.net> - 2013-05-27 10:21 -0700
    Re: Shortint calculations Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-05-27 20:32 +0200
    Re: Shortint calculations kvstegemann@web.de - 2013-05-27 11:46 -0700
      Re: Shortint calculations Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-05-27 23:40 +0200
      Re: Shortint calculations "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-05-28 08:02 +0200
  Re: Shortint calculations Mathias <mathias.hakansson@consultec.se> - 2013-05-27 22:39 -0700
    Re: Shortint calculations Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-05-28 09:01 +0200
      Re: Shortint calculations kvstegemann@web.de - 2013-05-28 01:02 -0700
        Re: Shortint calculations Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-05-28 10:32 +0200
          Re: Shortint calculations kvstegemann@web.de - 2013-05-28 01:46 -0700
    Re: Shortint calculations Meinhard Schnoor-Matriciani <msm@appfact.de> - 2013-05-28 11:45 +0200
      Re: Shortint calculations Mathias <mathias.hakansson@consultec.se> - 2013-05-28 23:45 -0700
        Re: Shortint calculations "Er!k \\/!$$Er" <nospam@nospam.url> - 2013-05-29 16:57 +0200
          Re: Shortint calculations dlzc <dlzc1@cox.net> - 2013-05-29 09:33 -0700
  Re: Shortint calculations dlzc <dlzc1@cox.net> - 2013-05-28 07:15 -0700
    Re: Shortint calculations Mathias <mathias.hakansson@consultec.se> - 2013-05-29 04:44 -0700
      Re: Shortint calculations dlzc <dlzc1@cox.net> - 2013-05-29 07:25 -0700
  Re: Shortint calculations "Jamal" <jamal@examples.net> - 2013-05-29 17:18 -0400
    Re: Shortint calculations kvstegemann@web.de - 2013-05-30 01:47 -0700
      Re: Shortint calculations "Jamal" <jamal@examples.net> - 2013-05-30 13:19 -0400
  Re: Shortint calculations Meinhard Schnoor-Matriciani <msm@appfact.de> - 2013-05-30 22:05 +0200
    Re: Shortint calculations kvstegemann@web.de - 2013-05-31 03:43 -0700

csiph-web