Mercurial > hg > octave-kai > gnulib-hg
comparison lib/round.c @ 10092:ae7bf97ee30c
Remove trailing spaces.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 20 May 2008 00:16:32 +0200 |
parents | 1013cba29012 |
children | e8d2c6fc33ad |
comparison
equal
deleted
inserted
replaced
10091:4811e739257d | 10092:ae7bf97ee30c |
---|---|
65 this when floor and ceil are available, on the assumption that they are | 65 this when floor and ceil are available, on the assumption that they are |
66 faster than the open-coded versions below. */ | 66 faster than the open-coded versions below. */ |
67 DOUBLE | 67 DOUBLE |
68 FLOOR_BASED_ROUND (DOUBLE x) | 68 FLOOR_BASED_ROUND (DOUBLE x) |
69 { | 69 { |
70 if (x >= L_(0.0)) | 70 if (x >= L_(0.0)) |
71 { | 71 { |
72 DOUBLE y = FLOOR (x); | 72 DOUBLE y = FLOOR (x); |
73 if (x - y >= L_(0.5)) | 73 if (x - y >= L_(0.5)) |
74 y += L_(1.0); | 74 y += L_(1.0); |
75 return y; | 75 return y; |