Mercurial > libavcodec.hg
diff utils.c @ 11742:a37818ac3817 libavcodec
Factorize some code into the new function ff_toupper4().
Patch by Francesco Lavra, francescolavra interfree it
author | cehoyos |
---|---|
date | Tue, 18 May 2010 19:16:40 +0000 |
parents | 25ed71436974 |
children | 3c0dffc64d86 |
line wrap: on
line diff
--- a/utils.c Mon May 17 22:49:34 2010 +0000 +++ b/utils.c Tue May 18 19:16:40 2010 +0000 @@ -1294,3 +1294,11 @@ } return 0; } + +unsigned int ff_toupper4(unsigned int x) +{ + return toupper( x &0xFF) + + (toupper((x>>8 )&0xFF)<<8 ) + + (toupper((x>>16)&0xFF)<<16) + + (toupper((x>>24)&0xFF)<<24); +}