Thread: Avisynth+
View Single Post
Old 22nd February 2018, 15:08   #3941  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
Quote:
Originally Posted by StainlessS View Post
I think I recently saw some Intrinsic to count number of set bits, not sure, might have been for 64 bit only.
POPCNT, don't think it's our bottleneck if I'm omitting that

Quote:
Originally Posted by StainlessS View Post
I dont think avs 2.6 implements Arithmetic Shift Left, just Logical Shift Left, probably not needed but I also
implemented in RT_.
No difference for left shift. Right is arithmetic because it copies MSB instead of filling in zeros.

Quote:
Originally Posted by StainlessS View Post
RT_Hex(int , int "width"=0)
Done. Did you know that in avs+ the hex string was in lowercase?

Quote:
Originally Posted by StainlessS View Post
# Mod, add pos arg.
RT_HexValue(String,"pos"=1)
Done. -1 bug was not present, probably the fix was pulled from classic avs

Quote:
Originally Posted by StainlessS View Post
from RT_String.cpp
env->AddFunction("RT_StrReplace", "sss[sig]b",RT_StrReplace, 0);
ReplaceStr exists already in avs+, and I was just about adding a 'case insensitive' parameter. Probably I'll keep your parameter naming.

I'll look at the rest later.
pinterf is offline