Home » Developing U++ » U++ Developers corner » "better" version of Iscale functions
Re: "better" version of Iscale functions [message #15138 is a reply to message #15129] |
Wed, 02 April 2008 15:11   |
 |
mirek
Messages: 14265 Registered: November 2005
|
Ultimate Member |
|
|
mdelfede wrote on Tue, 01 April 2008 17:10 |
BTW, we could completely drop the assembly code, as-is it's not portable between compilers with greater integer width.
|
Yes, but int64 does not come cheap on non-64 architecture. Maybe even that FP computation could be faster. Of course, as long as FP is performed by HW. For ARM this new iscale can be good.
Quote: |
My version is also *not* portable on compilers with 64 bit wide integers, but can be made ok just changing function prototype :
int32_t iscale(int32_t x, int32_t y, int32_t z)
Leaving so to the compiler the integer width check and warnings.
|
IMO, that really is not that bug trouble, as any serious portable code should work with 32-bit int.
Mirek
|
|
|
 |
|
"better" version of Iscale functions
By: mdelfede on Tue, 01 April 2008 23:10
|
 |
|
Re: "better" version of Iscale functions
By: mirek on Wed, 02 April 2008 15:11
|
 |
|
Re: "better" version of Iscale functions
By: mdelfede on Wed, 02 April 2008 16:48
|
 |
|
Re: "better" version of Iscale functions
By: mirek on Sun, 06 April 2008 04:47
|
 |
|
Re: "better" version of Iscale functions
By: mdelfede on Sun, 06 April 2008 19:36
|
 |
|
Re: "better" version of Iscale functions
By: mdelfede on Sun, 06 April 2008 20:05
|
 |
|
Re: "better" version of Iscale functions
By: mdelfede on Sun, 06 April 2008 20:14
|
 |
|
Re: "better" version of Iscale functions
By: mirek on Thu, 10 April 2008 02:44
|
 |
|
Re: "better" version of Iscale functions
By: mirek on Thu, 10 April 2008 02:46
|
 |
|
Re: "better" version of Iscale functions
By: mdelfede on Thu, 10 April 2008 15:07
|
 |
|
Re: "better" version of Iscale functions
By: mirek on Thu, 10 April 2008 18:01
|
 |
|
Re: "better" version of Iscale functions
By: mdelfede on Fri, 11 April 2008 09:26
|
 |
|
Re: "better" version of Iscale functions
By: mirek on Sun, 06 April 2008 04:51
|
Goto Forum:
Current Time: Sun Jul 06 22:39:52 CEST 2025
Total time taken to generate the page: 0.03901 seconds
|