github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/image/draw/utils.go (about)

     1  // Copyright 2014 <chaishushan{AT}gmail.com>. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package draw
     6  
     7  func mergeRgbaFast(rgba0, rgba1 uint32) uint32 {
     8  	return ((rgba0 & 0xFEFEFEFE >> 1) + (rgba1 & 0xFEFEFEFE >> 1))
     9  }